package edu.co.uniandes.taller14.ejb;

import java.rmi.RemoteException;
import java.util.Collection;

import javax.ejb.CreateException;
import javax.ejb.EJBHome;
import javax.ejb.FinderException;

import edu.co.uniandes.taller14.mundo.DirectorioPK;

public interface DirectorioHome extends EJBHome {

	Directorio create(String directorioID, String nombre, String departamento, String oficina, String extension)
    	throws CreateException, RemoteException;

	public Directorio findByPrimaryKey(DirectorioPK key)
      	throws FinderException, RemoteException;
	
	public Directorio findEmpleado(String nombre)
		throws  FinderException, RemoteException;
	
	public Collection findEmpleados()
		throws FinderException, RemoteException;
}
